#include "bsp_math.hpp"

inline void normalize(VECTOR3D vector){
 vfloat len= VECTOR_LENGTH(vector);
 VECTOR_DIV_SCALAR(vector,len);
}

inline void set_length(VECTOR3D vector, VECTOR3D v, vfloat l){
 VECTOR_COPY(vector,v);
 vfloat len= VECTOR_LENGTH(v);
 l/= len;
 VECTOR_MUL_SCALAR(vector,l);
}
